package com.example.warehouse.sys.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_role")
public class SysRole implements Serializable {
    /*
     * 数据ID
     */
    @ExcelProperty(value = "数据ID",index = 0)
    @TableId(type = IdType.AUTO)
    private Long id;

    /*
     * 名称
     */
    @ExcelProperty(value = "名称",index = 1)
    private String name;

    /*
     * 简介
     */
    @ExcelProperty(value = "简介",index = 2)
    private String description;

    /*
     * 排序序号
     */
    @ExcelProperty(value = "排序序号",index = 3)
    private Integer sort;

    /*
     * 是否可用，0不可用，1可用
     */
    @ExcelProperty(value = "是否可用",index = 4)
    private Integer enable;

    /*
     * 数据创建时间
     */
    @ExcelProperty(value = "数据创建时间",index = 5)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /*
     * 数据最后修改时间
     */
    @ExcelProperty(value = "数据最后修改时间",index = 6)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

}
